﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" Inherits="Thanh_Toan" Codebehind="Thanh-Toan.aspx.cs" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .auto-style1 {
            width:252px;
            height:20px;
            padding-left:20px;
        }
    .button {
            background:none;
	        font:inherit;
	        color:inherit;
	        cursor:pointer;
        }
    .auto-style2 {
            width:130px;
            height:20px;
            padding-left:20px;
        }
    .auto-style3 {
            width:100%;
            height:20px;
            padding: 0 0 23px 15px;
        }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <section id="content" class="clearfix">
        <section id="page">
            <div id="pg-content" class="clearfix">
                <div id="content-title">
                    <font size="15px">
                        Thông tin đặt hàng
                    </font>
                </div>
                <font style="padding-left:25px;" size="4px" color="White">Lưu ý : Xin nhập đầy đủ thông tin thanh toán để Nhân Viên sẽ xử lý một cách nhanh nhất. (*)</font>
                <br /><br />

                <table>
                    <tr>
                        <td class="auto-style1">
                            <p class="contact-form-sender">
                                <asp:TextBox ID="txtRequiredDate" placeholder="ngày giao hàng" runat="server" /> 
                               <%--<asp:ImageButton ID="Image1" ImageUrl="~/Image/Calendar_scheduleHS.png"  runat="server" AlternateText="Nhấn để hiện lịch" />
                                <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtRequiredDate" PopupButtonID="Image1"></asp:CalendarExtender>--%>
                            </p>
                        </td>
                        <td class="auto-style3">
                            (tháng/ngày/năm)
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="Dynamic" Font-Size="20px" ForeColor="#68C6D1" runat="server" ControlToValidate="txtRequiredDate" ValidationGroup="thanhtoan">(*)</asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <p class="contact-form-sender">
                                <asp:TextBox ID="txtShipname" runat="server" placeholder="Họ tên người nhận" />
                            </p>
                        </td>
                        <td class="auto-style3">

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="Dynamic" Font-Size="20px" ForeColor="#68C6D1" runat="server" ControlToValidate="txtShipname" ValidationGroup="thanhtoan">(*)</asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <p class="contact-form-sender">
                                <asp:TextBox ID="txtShipAddress" runat="server" placeholder="Địa chỉ nhận hàng" />
                            </p>
                        </td>
                        <td class="auto-style3">

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Display="Dynamic" Font-Size="20px" ForeColor="#68C6D1" runat="server" ControlToValidate="txtShipAddress" ValidationGroup="thanhtoan">(*)</asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <p class="contact-form-sender">
                                <asp:TextBox ID="txtShipcity" runat="server" placeholder="Thành phố" />
                            </p>
                        </td>
                        <td class="auto-style3">

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" Display="Dynamic" Font-Size="20px" ForeColor="#68C6D1" runat="server" ControlToValidate="txtShipcity" ValidationGroup="thanhtoan">(*)</asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <p class="contact-form-sender">
                                <asp:TextBox ID="txtShipPostalCode" runat="server" placeholder="Mã bưu chính quốc gia" />
                            </p>
                        </td>
                        <td class="auto-style3">

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" Display="Dynamic" Font-Size="20px" ForeColor="#68C6D1" runat="server" ControlToValidate="txtShipPostalCode" ValidationGroup="thanhtoan">(*)</asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <p class="contact-form-sender">
                                <asp:TextBox ID="txtShipCountry" runat="server" placeholder="Quốc gia" />
                            </p>
                        </td>
                        <td class="auto-style3">

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" Display="Dynamic" Font-Size="20px" ForeColor="#68C6D1" runat="server" ControlToValidate="txtShipCountry" ValidationGroup="thanhtoan">(*)</asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <p class="contact-form-sender">
                                <asp:DropDownList ID="ddl_payment" runat="server" 
                                    style="width:250px; height:30px; background-color:#707070;
                                            color:#ececec;font:inherit;text-indent:5px;font-size:16px;"/>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style2">
                            <span class="button-met dark">
                                <asp:Button ID="btnPayment" 
                                    CssClass="button" Text="Lưu thông tin đặt hàng" 
                                    runat="server" BorderWidth="0px" OnClick="btnPayment_Click" ValidationGroup="thanhtoan" />
                            </span><br />
                            <asp:Label ID="lblThongBao" runat="server" Font-Size="17px" ForeColor="#66FF99"></asp:Label>
                        </td>
                    </tr>
                </table>
                <br />
                <asp:Label ID="lbGioHang" runat="server" Text="Giỏ hàng của bạn" Font-Size="2em" ForeColor="#3d8def"></asp:Label>
               <br />
                <asp:Panel ID="pnCart" runat="server">
                    <asp:GridView ID="gv_InformationCart" runat="server" 
                    AutoGenerateColumns="False" 
                    CellPadding="4" 
                    ForeColor="#333333" 
                    GridLines="None" 
                    Width="100%" ShowFooter="True">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="ProductID" HeaderText="Mã Sản Phẩm" ReadOnly="True" >
                            <HeaderStyle Font-Size="15px" ForeColor="White" />
                            <ItemStyle Font-Size="14px" ForeColor="Brown" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ProductName" HeaderText="Tên Sản Phẩm" ReadOnly="True">
                            <HeaderStyle Font-Size="15px" ForeColor="White" />
                            <ItemStyle Font-Size="14px" ForeColor="Brown" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UnitPrice" HeaderText="Giá" DataFormatString="{0:#,###,###}" ReadOnly="True" >
                            <HeaderStyle Font-Size="15px" ForeColor="White" />
                            <ItemStyle Font-Size="14px" ForeColor="Brown" />
                        </asp:BoundField>
            
                        <asp:TemplateField HeaderText="Số lượng">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtQuantity" runat="server" Text='<%#Bind("Quantity") %>'  Width="90px"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Quantity") %>' Font-Size="14px" />
                            </ItemTemplate>
                            <HeaderStyle Font-Size="15px" ForeColor="White" />
                            <ItemStyle Font-Size="14px" ForeColor="Brown" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="TotalAmount" HeaderText="Thành tiền" DataFormatString="{0:#,###,###}" ReadOnly="True" >
                            <HeaderStyle Font-Size="15px" ForeColor="White" />
                            <ItemStyle Font-Size="14px" ForeColor="Brown" />
                        </asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="14px" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        
                </asp:GridView><br /><br />
                <div style="float:right;">
                <asp:Label ID="lbTongTien" runat="server" Font-Size="20px" ForeColor="#3d8def"></asp:Label><br />
                <span class="button-met dark">
                    <asp:Button ID="btnThanhToan" 
                        CssClass="button" Text="Thanh toán" 
                        runat="server" BorderWidth="0px" OnClick="btnThanhToan_Click" CausesValidation="false" ValidationGroup="thanhtoan" />
                </span></div>
                </asp:Panel>
                
            </div>
    </section>

    <section id="sidebar">
            <div id="search" class="widget">
                <asp:TextBox ID="txtsearch" CssClass="search-field placeholder" type="search" name="sitesearch" placeholder="Tìm kiếm" runat="server" />
                <asp:Button ID="btnSearch" runat="server" BorderWidth="0px" type="submit" CssClass="search-submit" value=" " />
            </div>

            <div id="twitter" class="widget">
                <h5>Giỏ Hàng</h5>
                <table id="tweeter">
                    <tr>
                        <td align="left">
                            <img  src="Image/Giohang.gif"  /></td>
                        <td align="left">
                            &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" ForeColor="Red" NavigateUrl="~/Gio-Hang.aspx" Text="Giỏ hàng của bạn"/>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <img src="Image/Sotien.gif"  /></td>
                        <td align="left">
                            &nbsp;<asp:Label ID="lbSelected" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                </table>
            </div>

            <div id="recent-box" class="widget">
                <h5>Quảng Cáo</h5>
                    <ul class="articles-widget">
                    <li>
	                    <a href="http://error404.000webhost.com/?">
	                    <img src="../Image/images/articles/article1_med.jpg" alt="Article 1" />
                        <div class="title">Giảm giá cực sốc <br><span class="redtxt">Laptop chỉ có 5 triệu</span></div>
                        <div class="more"></div>
                        </a>
                    </li>
                    <li>
	                    <a href="http://error404.000webhost.com/?">
	                    <img src="../Image/images/articles/article2_med.jpg" alt="Article 2" />
                        <div class="title">Tặng phẩm sốc<br><span class="limetxt">USB 8GB Ram 2GB</span></div>
                        <div class="more"></div>
                        </a>
                    </li>
                    <li>
	                    <a href="http://error404.000webhost.com/?">
	                    <img src="../Image/images/articles/article3_med.jpg" alt="Article 3" />
                        <div class="title">Phiếu quà tặng<br><span class="tealtxt">Tiết kiệm hơn 15 triệu</span></div>
                        <div class="more"></div>
                        </a>
                    </li>

                    </ul>
            </div>
        </section>
</section>
</asp:Content>

